if __name__ == "__main__":
    from src.crawler.chat_deepseek_com import DeepSeek
    import time

    print("初始化DeepSeek爬虫...")
    deepseek = DeepSeek()

    print("启动测试模式...")
    deepseek.test_mode()

    print("创建新对话...")
    chat = deepseek.create_new_chat()

    # 测试发送消息并获取完整流式响应
    print("\n发送测试消息...")
    test_message = "你好，请简短介绍一下你自己。"  # 使用更简短的消息便于测试

    response_message = chat.send_message(test_message)

    print("\n================ 完整响应内容 ================")
    print(response_message)
    print("============== 完整响应内容结束 ==============\n")
    
    deepseek.wait_for_close()
    pass
